﻿using System;
using System.Windows.Forms;

using SBPweb.Modules.Smartparts;
using SBPweb.Modules.Modularity;

namespace SBPweb.MediaCenter.Modules.Calendar.WF
{

    public partial class CalendarControl : UserControl, ISmartpart
    {

        #region Private fields

        private bool pIsModal;
        private Aligning pAlign;
        private IModule pParentModule;

        #endregion

        #region Constructor logic
        
        public CalendarControl(IModule parentModule)
        {
            InitializeComponent();
        }

        #endregion

        #region Property accessors

        public Aligning Align
        {
            get
            {
                return pAlign;
            }
            set
            {
                pAlign = value;
            }
        }

        public IModule ParentModule
        {
            get
            {
                return pParentModule;
            }
        }

        public bool IsVisible
        {
            get
            {
                return base.Visible;
            }
            set
            {
                base.Visible = value;
            }
        }

        public bool IsEnabled
        {
            get
            {
                return base.Enabled;
            }
            set
            {
                base.Enabled = value;
            }
        }

        public bool IsModal
        {
            get
            {
                return pIsModal;
            }
        }

        #endregion

    }

}